package cn.xn.hrms.infrastructure.dao;

import java.util.Collection;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.xn.hrms.api.dto.res.PersonalDTO;
import cn.xn.hrms.infrastructure.dataobject.PersonalDO;

/**
 * @author ysz
 */
public interface PersonalDao {

    int insertSelective(PersonalDTO record);

    PersonalDO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PersonalDTO record);

    List<PersonalDO> selectAll(@Param("departmentId") Integer departmentId, @Param("personalName") String personalName, @Param("workStatus") int workStatus);

    List<PersonalDTO> findAllByIdIn(@Param("idCollection")Collection<Integer> idCollection);

    int updateIsDeletedByIdIn(@Param("updatedIsDeleted")Integer updatedIsDeleted,@Param("idCollection")Collection<Integer> idCollection);

}
